DECLARE @Id AS BigInt
Select @Id = Id From sysobjects Where Name = 'SupplementaryInsurance'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'NonInsuranceFlag')
  Alter table SupplementaryInsurance Add NonInsuranceFlag BIT NULL DEFAULT(1)

Select @Id = Id From sysobjects Where Name = 'SupplementaryInsurance'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'PatientFlag')
  Alter table SupplementaryInsurance Add PatientFlag BIT NULL DEFAULT(1)

Select @Id = Id From sysobjects Where Name = 'SupplementaryInsurance'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'GoodsFlag')
  Alter table SupplementaryInsurance Add GoodsFlag BIT NULL DEFAULT(1)

 Select @Id = Id From sysobjects Where Name = 'SupplementaryInsurance'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'DifferFlag')
  Alter table SupplementaryInsurance Add DifferFlag BIT NULL DEFAULT(1)

 Select @Id = Id From sysobjects Where Name = 'SupplementaryInsurance_DrugCondition'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Ceilling')
  Alter table SupplementaryInsurance_DrugCondition Add Ceilling INT NULL DEFAULT(0)
